// 定时发送push任务，用crontab启动
var io = require('socket.io-client')
var socket = io('http://127.0.0.1:3100');
socket.on('connected', function (data) {
    console.log(data);
    socket.emit('push', {data: 'push data'})
    socket.on('push_global', function(data) {
        console.log(data)
        process.exit()
    })
})
